count = 0

for x in range(0, 101):
    for y in range(0, 34):
        for z in range(0, 101):
            if x + y + z == 100 and x * 1 + y * 3 + z * 0.5 == 100:
                count += 1

print(f"有{count}种买法。")
